package com.example.swaggerdemo.controller;



import com.example.swaggerdemo.common.Result;
import com.example.swaggerdemo.entity.SysUserRegister;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 人员注册表 前端控制器
 * </p>
 *
 * @author jerry
 * @since 2023-06-27
 */
@RestController
@RequestMapping("/dms/register")
@Api(tags = "用户信息注册")
public class SysUserRegisterController {

    /**
     * 信息注册接口
     *
     * @param register
     * @return
     */
    @PostMapping("/register")
    @ApiOperation("信息注册接口")
    public Result register(@RequestBody SysUserRegister register) throws Exception {
        return Result.success();
    }

    /**
     * 获取审批列表接口
     *
     * @param areaId
     * @return
     */
    @GetMapping("/queryCheckList")
    @ApiOperation("获取审批列表接口")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "areaId", value = "区域ID", dataType = "String", required = true),
    })
    public Result queryCheckList(@RequestParam String areaId) throws Exception{
        return Result.success();
    }

    /**
     * 用户信息审核接口
     *
     * @param registers
     * @return
     */
    @PostMapping("/check")
    @ApiOperation("用户信息审核接口")
    public Result check(@RequestBody SysUserRegister registers) throws Exception {
        return Result.success();
    }
}